package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * runfast_business_type
 * @author 
 */
public class RunfastBusinessType implements Serializable {
    /**
     * 商家类型id
     */
    private Integer id;

    /**
     * 描述
     */
    private String content;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 商家类型名称
     */
    private String name;

    /**
     * 上级分类
     */
    private Integer parentId;


    private List<Map<String,String>> subType=new ArrayList<Map<String,String>>();


    private List<RunfastBusinessType> subList=new ArrayList<RunfastBusinessType>() ;

    private String broadHeading;

    private String subclass;

    private static final long serialVersionUID = 1L;

    public List<Map<String, String>> getSubType() {
        return subType;
    }

    public void setSubType(List<Map<String, String>> subType) {
        this.subType = subType;
    }

    public String getBroadHeading() {
        return broadHeading;
    }

    public void setBroadHeading(String broadHeading) {
        this.broadHeading = broadHeading;
    }

    public String getSubclass() {
        return subclass;
    }

    public void setSubclass(String subclass) {
        this.subclass = subclass;
    }

    public List<RunfastBusinessType> getSubList() {
        return subList;
    }

    public void setSubList(List<RunfastBusinessType> subList) {
        this.subList = subList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RunfastBusinessType other = (RunfastBusinessType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", createtime=").append(createtime);
        sb.append(", name=").append(name);
        sb.append(", parentId=").append(parentId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}